cmake_minimum_required(VERSION 3.8)
project(ffmpegTest)

set(CMAKE_CXX_STANDARD 11)
SET(FFMPEG_DIR /usr/local/)
message("--------${CMAKE_CURRENT_SOURCE_DIR}=-----")
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ffmpeg/include)
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/ffmpeg/lib)
SET(FFMPEG_LIB avcodec avdevice avfilter avformat avutil swresample swscale fdk-aac x264 z c m dl)

set(SOURCE_FILES audioencoder.cpp audioencoder.cpp audioresampler.cpp
        filterrenderadapter.cpp imagemedia.cpp ImageUtils.cpp
        LogUtils.h mediadecode.cpp muxer.cpp stringutils.h util.c videoencoder.cpp main.cpp)
add_executable(ffmpegTest ${SOURCE_FILES})
target_link_libraries(ffmpegTest ${FFMPEG_LIB})